package com.bdqn.BookManage.biz.impl;

import com.bdqn.BookManage.biz.BookTypeBiz;
import com.bdqn.BookManage.dao.BookTypeDao;
import com.bdqn.BookManage.dao.impl.BookTypeDaoImpl;
import com.bdqn.BookManage.po.BookType;

import java.util.List;

/**
 * @author : CP
 * @version: 1.0
 * @program : BookManage
 * @description : 图书类型业务接口实现类
 * @date : 2020-07-16 16:57
 **/
public class BookTypeBizImpl implements BookTypeBiz {
    BookTypeDao bookTypeDao = new BookTypeDaoImpl();

    /**
     * 查询所有图书类型
     * @return List<BookType>
     */
    @Override
    public List<BookType> queryAll() {
        return bookTypeDao.queryAll();
    }

    /**
     * 根据类型编号查询图书类型
     * @param id 类型编号
     * @return BookType
     */
    @Override
    public BookType queryById(Integer id) {
        return bookTypeDao.queryById(id);
    }
}
